import React from 'react'
import Son from './Son'
import Rcc from './Rcc'
import Event from './Event'
class App extends React.Component{
    //传给子组件的函数
    mySon = ()=>{
        console.log('我被儿子召唤了')
    }
    render(){
        return <div>
            <Event></Event>
            {/* <Rcc></Rcc>
            <Son mySon={ this.mySon }></Son> */}
        </div>
    }
}
export default App